﻿#Decisions here so can still have journals on new patch
#TODO: Remove on next bc update
manifest_destiny_qingqiu = {
	is_shown = {
		exists = c:QIN
		root = c:QIN
		NOT = { has_journal_entry = je_manifest_destiny_qingqiu }
		NOT = { has_variable = manifested_destiny_qingqiu }
		NOT = { has_global_variable = manifested_destiny_qingqiu_complete }
	}

	possible = {
		exists = c:QIN
		root = c:QIN
	}

	when_taken = {
		if = {
			limit = {
				owns_entire_state_region = STATE_YICHENG
				owns_entire_state_region = STATE_HAIKOU
				owns_entire_state_region = STATE_LAOFENG
				owns_entire_state_region = STATE_YULIN
				owns_entire_state_region = STATE_BAIZEHU
			}
			trigger_event = { id = dvg_manifest_destiny.1 }
		}
		else = {
			add_journal_entry = {
				type = je_manifest_destiny_qingqiu
			}
		}

		set_variable = manifested_destiny_qingqiu
	}

	ai_chance = {
		base = 10
	}
}

manifest_destiny_plantagenia = {
	is_shown = {
		country_has_primary_culture = cu:plantagenian
		NOT = { has_journal_entry = je_manifest_destiny_plantagenia }
		NOT = { has_variable = manifested_destiny_plantagenia }
		NOT = { has_global_variable = manifested_destiny_plantagenia_complete }
	}

	possible = {
		country_has_primary_culture = cu:plantagenian
	}

	when_taken = {
		if = {
			limit = {
				owns_entire_state_region = STATE_MESSIPPI_SUPERIEURE
				owns_entire_state_region = STATE_NOUVEAU_LANCASTRE
				owns_entire_state_region = STATE_TERRES_CAU
				owns_entire_state_region = STATE_TERRES_ROUGES
				owns_entire_state_region = STATE_TERRES_MAHA
			}
			trigger_event = { id = dvg_manifest_destiny.2 }
		}
		else = {
			add_journal_entry = {
				type = je_manifest_destiny_plantagenia
			}
		}
		set_variable = manifested_destiny_plantagenia
	}

	ai_chance = {
		base = 10
	}
}

manifest_destiny_vinland = {
	is_shown = {
		country_has_primary_culture = cu:vinlander
		NOT = { has_journal_entry = je_manifest_destiny_vinland }
		NOT = { has_variable = manifested_destiny_vinland }
		NOT = { has_global_variable = manifested_destiny_vinland_complete }
	}

	possible = {
		country_has_primary_culture = cu:vinlander
	}

	when_taken = {
		if = {
			limit = {
				owns_entire_state_region = STATE_TJORNIN
				owns_entire_state_region = STATE_GYLHENVIK
				owns_entire_state_region = STATE_ODENSMARK
			}
			trigger_event = { id = dvg_manifest_destiny.3 }
		}
		else = {
			add_journal_entry = {
				type = je_manifest_destiny_vinland
			}
		}
	
		set_variable = manifested_destiny_vinland
	}

	ai_chance = {
		base = 10
	}
}
